package demo428;

import demo04.BankPay;
import demo04.Pay;

import java.util.Scanner;

public class TsetPay {
    public static void main(String[] args) {
        double money=15;
        System.out.println("你需要付款的余额为："+money);
        System.out.println("请选择支付的方式：1.银行卡支付  2.微信支付  3.支付宝支付");
        Scanner scanner=new Scanner(System.in);
        switch(scanner.nextInt()){
            case 1:
              Pay bankPay=new BankPay();
              bankPay.pay(money);
              break;
            case 2:
               Pay bankPay2=new BankPay();
                bankPay2.pay2(money);
                break;
            case 3:
                Pay bankPay3=new BankPay();
                bankPay3.pay3(money);
                break;
        }
    }
}
